]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Set time zero when animations are disabled
authorAlessandro Bono <alessandro.bono369@gmail.com>
Mon, 24 Oct 2022 07:37:27 +0000 (09:37 +0200)
committerAlessandro Bono <alessandro.bono369@gmail.com>
Fri, 4 Nov 2022 13:14:34 +0000 (14:14 +0100)
In commit ee09c5c85312f571e14abe69bb6674a361c16d65 we chose to pick
the minimum value in order to preserve 0 instead of replacing it with
1. While returning 0 unconditionally when animations are disabled
seems the more logic thing to do, we were unsure about possible side
effects. Do the change now. Since we are early in the development cycle
we should be able to deal with side effects (if any) on time for the
next release.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2528>

js/ui/environment.js

index 8c790da6725631e538c75cc5d5d94bb86f69bb50..5895031c66a2eb9681db38a36fa1325bc5536788 100644 (file)
@@ -464,7 +464,7 @@ function adjustAnimationTime(msecs) {
     let settings = St.Settings.get();
 
     if (!settings.enable_animations)
-        return Math.min(msecs, 1);
+        return 0;
     return settings.slow_down_factor * msecs;
 }